home *** CD-ROM | disk | FTP | other *** search
/ Explorers of the New World / Explorers of the New World.iso / pc / exdata.dir / 00837_checkcasts.ls < prev    next >
Encoding:
Text File  |  1995-09-10  |  815 b   |  25 lines

  1. on checkcasts startFrame, endFrame
  2.   go(startFrame)
  3.   set currentFrame to startFrame
  4.   set pictureCastName to EMPTY
  5.   set mapCastName to EMPTY
  6.   repeat while currentFrame < endFrame
  7.     go(currentFrame)
  8.     if the castNum of sprite 26 <> 0 then
  9.       set pictureCastName to the name of cast the castNum of sprite 26
  10.     end if
  11.     go(currentFrame + 1)
  12.     if the castNum of sprite 25 <> 0 then
  13.       beep()
  14.       set mapCastName to the name of cast the castNum of sprite 25
  15.     end if
  16.     put "mapCastName = " & mapCastName
  17.     if not voidp(pictureCastName) and not voidp(mapCastName) then
  18.       if item 1 of pictureCastName <> word 1 of mapCastName then
  19.         put "frame " & currentFrame && pictureCastName & " <> " & mapCastName
  20.       end if
  21.     end if
  22.     set currentFrame to currentFrame + 5
  23.   end repeat
  24. end
  25.